home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / SpellCompositor / SpellDescription.java < prev    next >
Encoding:
Java Source  |  2001-06-23  |  1.1 KB  |  49 lines

  1. /*
  2. This file and its intellectual contents are considered property of the creator and are to be treated as such with respect to use in other applications.  Any use of this software for any purpose whatsoever must have explicit permission from the author of the file.  This code is part of an ongoing development process for future possible products, and so is considered private property.
  3. Do not use without permission.  Author: Scott C. Ziegler <Aslan@Narnia.net>
  4. */
  5.  
  6. package Arcana;
  7.  
  8. import java.awt.*;
  9. import java.io.*;
  10. import java.util.*;
  11. import java.awt.event.*;
  12. import java.awt.Color;
  13.  
  14. // SpellDescription
  15. //
  16. //        object for the manipulation of the text description of a spell
  17.     
  18. public class SpellDescription implements Serializable {
  19.     
  20.     String    textBody;
  21.     
  22.     // Constructors
  23.     
  24.     public SpellDescription() {}
  25.     
  26.     public SpellDescription(String desc) {
  27.         
  28.         textBody = new String(desc);
  29.         }
  30.         
  31.     // Selectors
  32.     
  33.     public String getDescription() {
  34.         return textBody;
  35.         }
  36.         
  37.     // Mutators
  38.     
  39.     public void setDescription(String desc) {
  40.         textBody = desc;
  41.         }
  42.         
  43.     // Methods
  44.         
  45.     public void display(TextComponent textRegion) {
  46.         textRegion.setText(textBody);
  47.         }
  48.     
  49.     }